{extend name="base" /}

{block name="content"}
<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-card-header">课程评价列表</div>
        <div class="layui-card-body">
            <div style="margin-bottom: 10px;">
        <a href="{:url('admin/dp/export_rating')}" class="layui-btn layui-btn-normal">导出课程评价</a>
    </div>
            <table class="layui-table" lay-size="sm">
                <thead>
                    <tr>
                        <th>ID</th>
                        <th>用户昵称</th>
                        <th>课程名称</th>
                        <th>课程内容评分</th>
                        <th>语言风格评分</th>
                        <th>评价内容</th>
                        <th>评价时间</th>
                    </tr>
                </thead>
                <tbody>
                    {foreach name="ratings" item="vo"}
                    <tr>
                        <td>{$vo.id}</td>
                        <td>{$vo.nickname|default='-'}</td>
                        <td>{$vo.course_name|default='-'}</td>
                        <td>{$vo.content_rating}</td>
                        <td>{$vo.style_rating}</td> 
                        <td>{$vo.comment}</td>
                        <td>{$vo.create_time}</td>
                    </tr>
                    {/foreach}
                </tbody>
            </table>
        </div>
    </div>
</div>
{/block}
